package com.tencent.shadow.sample.host.utils;

import com.meichis.mcsappframework.utils.SharePreferenceUtil;
import com.tencent.shadow.sample.host.model.UserInfo;

public class HostUserInfoLayerProvider {
    private static HostUserInfoLayerProvider instance;
    private SharePreferenceUtil mUtil;

    private void init() {
        instance = new HostUserInfoLayerProvider();
        mUtil = SharePreferenceUtil.getInstance();
    }

    private HostUserInfoLayerProvider() {
    }

    private UserInfo getUserInfo() {
        UserInfo userInfo = (UserInfo) SharePreferenceUtil.getInstance().getObjectValue(SharePreferenceUtil.PREFERENCES_USERINFO);
        return userInfo;
    }
}
